package com.gzu.emr.exception;



/**
 * @author chuchu
 * @version 1.0
 * @date 2023-07-20
 **/

public class CustomException extends RuntimeException{

    public CustomException(){

    }
    public CustomException(String message){ super(message);}

    /**
     * throw an exception
     * @param message
     */
    public static void fail(String message){
        throw new CustomException(message);
    }


}
